/*
* Copyright 2011 Pavel Kozhin 
*
* Licensed under the Apache License, Version 2.0 (the "License"); 
* you may not use this file except in compliance with the License. 
* You may obtain a copy of the License at 
* 
* http://www.apache.org/licenses/LICENSE-2.0
* 
* Unless required by applicable law or agreed to in writing, software 
* distributed  under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
* See the License for the specific language governing permissions and 
* limitations under the License.
*
* Author: Pavel Kozhin.
*/
package org.etherframework
{
	import flash.events.Event;
	
	import org.etherframework.common.command.facade.ICommands;
	import org.etherframework.common.dependency.facade.IDependencies;
	import org.etherframework.common.mediation.facade.IMediations;
	import org.etherframework.common.mediators.facade.IMediators;
	import org.etherframework.core.context.Context;
	import org.etherframework.core.context.IContextual;

	public interface IEther extends IContextual
	{
		function dispatch(event:Event):void;
		
		function listen(type:String, listener:Function):void;
		
		function unlisten(type:String, listener:Function):void;
		
		function unlistenAll():void;
		
		function contextual(context:Context):IEther;
		
		function destroy():void;
		
		function get dependencies():IDependencies;
		function get mediators():IMediators;
		function get commands():ICommands;
		function get mediations():IMediations;
	}
}